﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Controller;

public partial class Modules_PanoramaDefaultCenterControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GetData();
        }
    }
    public void GetData()
    {
        // Get list panorama small
        try
        {
            var controller = new VYC06Controller();
            var listPanorama = controller.GetListPanoramaNho(1, 1);
            if (listPanorama.Count > 0)
            {
                repeaterPanoramaMedium.DataSource = listPanorama;
                repeaterPanoramaMedium.DataBind();

                repeaterCaption.DataSource = listPanorama;
                repeaterCaption.DataBind();
            }
            // litResult.Text = "Ko co du lieu";
        }
        catch (Exception)
        {

            throw;
        }

    }
}